package com.syni.mdd.yhd.common.all.enums.business;

import com.syni.mdd.sjb.common.component.utils.common.enums.ReturnEnums;

/**
 * @className Coupon
 * @description TOO
 * @Author cfx
 * @DATE 2019/12/25 19:41
 * @VERSION 1.0
 **/

public enum CouponEnums implements ReturnEnums {
    COUPON_EXPIRE("存在过期券，请检查后重新输入","63012"),
    COUPON_NO_CAN_USE("存在无效券，请检查后重新输入","63013"),
    COUPON_EXIST_USE("存在已使用券，请检查后重新输入","63014"),
    COUPON_EXIST_HAVE_REFUND("存在已退款券，请检查后重新输入","63015"),
    COUPON_EXIST_NO_BELONG_BUSINESS("存在不属于该店铺的券，请检查后重新输入","63016");
    private String desc;
    private String returnCode;

    CouponEnums(String desc, String returnCode) {
        this.desc = desc;
        this.returnCode = returnCode;
    }

    @Override
    public String getCode() {
        return this.returnCode;
    }

    @Override
    public String getMsg() {
        return this.desc;
    }
}
